\documentclass[a4paper,10pt]{article} % article

\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{anysize}
\marginsize{2cm}{2cm}{2cm}{2cm}

%Highligh code
% Custom colors
\usepackage{color}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{codegreen}{rgb}{0,0.5,0.2}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}

\usepackage{listings}

\lstdefinestyle{mystyle}{
    backgroundcolor=\color{backcolour},   
    commentstyle=\color{deepblue},
    keywordstyle=\color{codegreen},
    numberstyle=\tiny\color{deepgreen},
    stringstyle=\color{deepred},
    basicstyle=\footnotesize,
    breakatwhitespace=false,         
    breaklines=true,                 
    captionpos=b,                    
    keepspaces=true,                 
    numbers=left,                    
    numbersep=5pt,                  
    showspaces=false,                
    showstringspaces=false,
    showtabs=false,                  
    tabsize=2
}
 
\lstset{style=mystyle}

%Font
\usepackage{avant}
\usepackage[scaled]{helvet} % ss
\usepackage[helvet]{sfmath} 
\normalfont
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
\usepackage[T1]{fontenc}
\usepackage{type1cm}
\usepackage{courier}
\renewcommand{\ttdefault}{pcr}
 
 %Head and foot page
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{Application name}
\fancyhead[R]{Element name}
\fancyfoot[R]{\leftmark}
\fancyfoot[L]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
% \renewcommand{\headwidth}{17cm} 

\title{Template}
\author{John Doe}
\date{February 2017}

\usepackage{lipsum}

\begin{document}

\maketitle

\section{Introduction}

\lipsum[1-1]

\section{Content}

\lipsum[1-1]

\begin{equation}\label{eq:eq1}
  x = a_0 + \cfrac{1}{a_1 
          + \cfrac{1}{a_2 
          + \cfrac{1}{a_3 + \cfrac{1}{a_4} } } }
\end{equation}

\lipsum[1-1]

\begin{lstlisting}[language=Python]
from sympy import *
from KratosMultiphysics import *
from sympy_fe_utilities import *

...

\end{lstlisting}

\begin{thebibliography}{99}

\bibitem{dummy1} John Doe {\em The dummy book I cite}  1991.

\bibitem{dummy2}  John D. {\em Dummy books for dummies} 1973:
Random House, N.Y.

\end{thebibliography}

\end{document}
